<div class="widget-body  am-fr">
        <form class="am-form tpl-form-line-form" data-am-validator id="formDoSubmitDialog">
          <input type="hidden" name="Id" id="Id" value="{{.m.Id}}">
          
           <div class="am-form-group">
              <label class="am-u-sm-3 am-form-label">上级类别：</label>
              <div class="am-u-sm-9">
                <select name="ParentId" id="ParentId">
                	<option value="0">作为顶级类别</option>
                     {{range $k,$v := .parent}}
                          <option value="{{$v.Id}}">{{$v.Prefix}} {{$v.ClassName}}</option>
                     {{end}}      
                </select>
              </div>
          </div>
          <div class="am-form-group">
              <label class="am-u-sm-3 am-form-label">类别名称：</label>
              <div class="am-u-sm-9">
                <input name="ClassName" type="text" id="ClassName"  placeholder="长度不超过80" max="80" value="{{.m.ClassName}}" required/>
              </div>
          </div>
          <div class="am-form-group">
              <label class="am-u-sm-3 am-form-label">所属类型：</label>
              <div class="am-u-sm-9">
				{{range $k,$v:=.style}}
                <label class="am-radio-inline">
                  	<input type="radio" name="Typeid" value="{{$k}}" {{if eq $k $.m.Typeid}} checked {{end}} data-am-ucheck required /> {{$v}}
                </label>
				{{end}}
                
              </div>
          </div>
         
          
          
         <div class="am-form-group">
              <label class="am-u-sm-3 am-form-label"></label>
              <div class="am-u-sm-9">
                <button class="am-btn am-btn-secondary" type="submit">确认提交</button>
                <button class="am-btn am-btn-default" type="reset">重置</button>
              </div>
          </div>
        </form>
</div>